/*
 * @Description: Web project
 * @Version: 2.0
 * @Autor: WenChing
 * @Email: 2510129345@qq.com
 * @Date: 2020-08-03 16:23:05
 * @LastEditors: WenChing
 * @LastEditTime: 2020-08-11 22:24:27
 */
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// 安装vant,引入
import 'vant/lib/index.css'
import Vant from 'vant'

import http from '../http.js'
// 通过这种方式挂载，可在任意页面通过 this.$http 使用
Vue.prototype.$http =http

import {Toast} from 'vant'
Vue.prototype.$msg =Toast
Vue.use(Vant)

Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
